{include file="public/layout" /}

<body class="ad_postion bodystyle" style="overflow-y: scroll;">
    
    <style>
        .yc{
            display: none;
        }
    </style>

<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>

<div id="append_parent"></div>

<div id="ajaxwaitid"></div>

<div class="page">

    <div class="fixed-bar">

        <div class="item-title">
        	<a class="back" href="javascript:history.back();" title="返回列表">
        		<i class="fa fa-chevron-left"></i>
        	</a>

            <div class="subject">

                <h3>全部采购详情</h3>

                <h5></h5>

            </div>

        </div>

    </div>

    <form class="form-horizontal" id="post_form" action="{:url('Workorder/see')}" method="post">

        <div class="ncap-form-default">

            <input type="hidden" name="id" value="{$field.id}">



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>选择地区</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="area" value="{$field.area}" id="area" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">
                <dt class="tit">
                    <label for="title"><em>*</em>供应商</label>
                </dt>

                <dd class="opt">
                <?php foreach($slist as $vo){ ?>
                    <div value="{$vo.id}" class="yc" <?php if($field['supplier_id'] == $vo['id']){ ?>style="display:block"<?php } ?>>{$vo.gys_name}</div>
                <?php } ?>

                    <!--<select name="supplier_id" class="small form-control">-->

                    <!--    <option value="0">请选择</option>-->

                    <!--    <?php foreach($slist as $vo){ ?>-->

                    <!--        <option value="{$vo.id}" <?php if($field['supplier_id'] == $vo['id']){ ?>selected="selected"<?php } ?>>{$vo.gys_name}</option>-->

                    <!--    <?php } ?>-->

                    <!--</select>-->
                    <span class="err"></span>
                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>产品名称</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="title" value="{$field.title}" id="title" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>产品款式说明</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="desc" value="{$field.desc}" id="desc" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>产品尺寸</label>

                </dt>

                <dd class="opt">

                    长：<input type="text" name="size_logn" value="{$field.size_logn}" id="size_logn" class="input-txt" disabled="disabled">

                    <br>

                    <i>宽：<input type="text" name="size_width" value="{$field.size_width}" id="size_width" class="input-txt" disabled="disabled"></i>

                    <br>

                    <i>高：<input type="text" name="size_height" value="{$field.size_height}" id="size_height" class="input-txt" disabled="disabled"></i>

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>包装尺寸</label>

                </dt>

                <dd class="opt">

                    长：<input type="text" name="pk_long" value="{$field.pk_long}" id="pk_logn" class="input-txt" disabled="disabled">

                    <br>

                    <i>宽：<input type="text" name="pk_width" value="{$field.pk_width}" id="pk_width" class="input-txt" disabled="disabled"></i>

                    <br>

                    <i>高：<input type="text" name="pk_height" value="{$field.pk_height}" id="pk_height" class="input-txt" disabled="disabled"></i>

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>包装重量</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="weight" value="{$field.weight}" id="weight" class="input-txt" disabled="disabled" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>产品价格</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="price" value="{$field.price}" id="price" class="input-txt" disabled="disabled" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>产品款式分类</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="cate" value="{$field.cate}" id="cate" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>运费</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="freight" value="{$field.freight}" id="freight" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>材质</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="material" value="{$field.material}" id="material" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>是否单独销售</label>

                </dt>

                <dd class="opt">

                    <div <?php if($field['is_sale'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_sale'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_sale" value="1" <?php if($field['is_sale'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_sale" value="2" style="margin-left: 20px;" <?php if($field['is_sale'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>单双包</label>

                </dt>

                <dd class="opt">



                    <div <?php if($field['is_ds_packge'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_ds_packge'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_ds_packge" value="1" <?php if($field['is_ds_packge'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_ds_packge" value="2" style="margin-left: 20px;" <?php if($field['is_ds_packge'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>

            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>是否现货</label>

                </dt>

                <dd class="opt">

                    <div <?php if($field['is_stock'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_stock'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_stock" value="1" <?php if($field['is_stock'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_stock" value="2" style="margin-left: 20px;" <?php if($field['is_stock'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>卖点功能</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="fun_desc" value="{$field['fun_desc']}" id="fun_desc" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>纸箱外观</label>

                </dt>

                <dd class="opt">
                        <?php foreach($appearance as $key=>$val){ ?>
                        <div value="{$key}" class="yc" <?php if($field['appearance'] == $key){ ?>style="display:block"<?php } ?>>{$val}</div>
                        <!--<option value="{$key}" <?php if($field['appearance'] == $key){ ?>selected="selected"<?php } ?>>{$val}</option>-->
                        <?php } ?> 

                    <!--<select name="appearance" class="small form-control">-->
                    <!--    <?php foreach($appearance as $key=>$val){ ?>-->
                    <!--    <div value="{$key}" <?php if($field['appearance'] == $key){ ?>style="display:block"<?php } ?>>>{$val}</div>-->
                        <!--<option value="{$key}" <?php if($field['appearance'] == $key){ ?>selected="selected"<?php } ?>>{$val}</option>-->
                    <!--    <?php } ?> -->

                    <!--    <option value="0">请选择</option>-->

                    <!--    <?php foreach($appearance as $key=>$val){ ?>-->
                        
                    <!--    <div value="{$key}">{$val}</div>-->

                    <!--    <option value="{$key}" <?php if($field['appearance'] == $key){ ?>selected="selected"<?php } ?>>{$val}</option>-->
                        
                    <!--    <?php } ?> -->

                    <!--</select>-->

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>是否出安装图纸</label>

                </dt>

                <dd class="opt">

                    <div <?php if($field['is_install_pic'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_install_pic'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_install_pic" value="1" <?php if($field['is_install_pic'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_install_pic" value="2" style="margin-left: 20px;" <?php if($field['is_install_pic'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>送货方式</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="delivery_method" value="{$field.delivery_method}" id="delivery_method" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>代发发货方式</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="df_method" value="{$field.df_method}" id="df_method" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>结账方式</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="settle_method" value="{$field.df_method}" id="settle_method" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>是否送货上楼</label>

                </dt>

                <dd class="opt">

                    <div <?php if($field['is_lou'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_lou'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_lou" value="1" <?php if($field['is_lou'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_lou" value="2" style="margin-left: 20px;" <?php if($field['is_lou'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>是否清理库存</label>

                </dt>

                <dd class="opt">

                    <div <?php if($field['is_clear_store'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_clear_store'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_clear_store" value="1" <?php if($field['is_clear_store'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_clear_store" value="2" style="margin-left: 20px;" <?php if($field['is_clear_store'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>成品出图方式</label>

                </dt>

                <dd class="opt">

                    <input type="text" name="img_method" value="{$field.img_method}" id="img_method" class="input-txt" disabled="disabled">

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row">

                <dt class="tit">

                    <label for="title"><em>*</em>运营是否先出图</label>

                </dt>

                <dd class="opt">

                    <div <?php if($field['is_yy_img'] == 2){ ?>style = "display: none"<?php } ?>>是</div>

                    <div <?php if($field['is_yy_img'] == 1){ ?>style = "display: none"<?php } ?>>否</div>

                    <!--<input type="radio" name="is_yy_img" value="1" <?php if($field['is_yy_img'] == 1){ ?>checked="checked"<?php } ?>>是-->

                    <!--<input type="radio" name="is_yy_img" value="2" style="margin-left: 20px;" <?php if($field['is_yy_img'] == 2){ ?>checked="checked"<?php } ?>>否-->

                    <span class="err"></span>

                </dd>

            </dl>



            <dl class="row" style="z-index: 2" id="skuImg">

                <dt class="tit"><em>*</em>

                    <label>产品图片</label>

                </dt>

                <dd class="opt">

                    <div class="tab-pane" id="tab_imgupload">

                        <!--<a href="javascript:void(0);" onClick="GetUploadify(30,'','allimg','imgupload_call_back_one');" class="imgupload">-->

                        <!--    <i class="fa fa-cloud-upload"></i>上传图片-->

                        <!--</a>-->

                        <table class="table table-bordered">

                            <tbody>

                            <tr>

                                <td class="sort-list">

                                    <?php foreach($imgArr as $key=>$val){ ?>

                                    <div class="images_upload">

                                        <div class="ic" style="width:100%">

                                            <div class='upimg' title="拖动修改排序" >

                                                <div class='icaction' style="display: none" >

                                                        <span class="load_images" onclick="Images('{$val}', 900, 600);">

                                                            <a href="javascript:void(0);" style="color:white">

                                                                <i class='fa fa-search-plus'></i>查看大图

                                                            </a>

                                                        </span>

                                                    <!--<span class="load_images mr5" onclick="LoadImagesId('{$key}');">-->

                                                    <!--        <i class='fa fa-photo'></i>更换图片-->

                                                    <!--    </span>-->

                                                </div>

                                                <div class='cover-bg' style="display: none" ></div>

                                                <img id="{$key}_Id" src="{$val}"/>

                                            </div>



                                            <input type="hidden" name="img_id[]" value="{$key}"/>

                                            <span class="span_input">

                                                    <input type="hidden" id="{$key}_Litpic" name="img[]" value="{$val}"/>

                                                </span>



                                            <div class="operation">

                                                {eq name='$main_lang' value='$admin_lang'}

                                                <!--<a href="javascript:void(0);" onclick="ClearPicArr(this,'{$val}','{$key}');">-->

                                                <!--    <i class="fa fa-remove"></i>删除-->

                                                <!--</a>-->

                                                {/eq}

                                            </div>



                                        </div>

                                    </div>

                                    <?php } ?>

                                    <div class="images_upload">

                                    </div>

                                </td>

                            </tr>

                            </tbody>

                        </table>

                    </div>

                    <!-- 上传图片显示的样板 start -->

                    <div class="images_upload_tpl none">

                        <div class="images_upload ic">

                            <div class="ic" style="width:100%">

                                <div class='upimg' title="拖动修改排序" >

                                    <div class='icaction' style="display: none">

                                        <span class="load_images" onclick="">

                                            <a href="javascript:void(0);" style="color: white">

                                                <i class='fa fa-search-plus'></i>查看大图

                                            </a>

                                        </span>

                                    </div>

                                    <div class='cover-bg' style="display: none"></div>

                                    <img src="__STATIC__/admin/images/add-button.jpg"/>

                                </div>

                                <input type="hidden"/>

                                <span class="span_input">

                                    <input type="hidden"/>

                                </span>

                                <div class="operation">

                                    <a href="javascript:void(0)">&nbsp;&nbsp;</a>

                                    <a href="javascript:void(0)">&nbsp;&nbsp;</a>

                                </div>

                            </div>

                        </div>

                    </div>

                    <!-- 上传图片显示的样板 end -->

                </dd>

            </dl>



            <!--<div class="bot"><a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a></div>-->

        </div>

    </form>

</div>

<script type="text/javascript">

    // 勾选新窗口打开链接

    function CheckedTarget(t){

        if ($(t).is(':checked')) {

            $(t).parent().find('input[name="img_target[]"]').val(1);

        }else{

            $(t).parent().find('input[name="img_target[]"]').val(0);

        }

    }



    // 鼠标事件，加载查看大图和更新图片

    $(document).ready(function(){

        $(".upimg").live('mouseover', function(){

            $(this).find('div.icaction').show();

            $(this).find('div.cover-bg').show();

        }).live('mouseout', function(){

            $(this).find('div.icaction').hide();

            $(this).find('div.cover-bg').hide();

        });

    });



    // 判断输入框是否为空

    function checkForm(){

        if($('input[name=area]').val() == ''){

            layer.msg('请选择地区！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=supplier_id]:selected').val() == ''){

            layer.msg('请选择供应商！！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=title]').val() == ''){

            layer.msg('产品名称不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=desc]').val() == ''){

            layer.msg('产品款式说明不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=size_logn]').val() == ''){

            layer.msg('产品尺寸长度不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=size_width]').val() == ''){

            layer.msg('产品尺寸宽度不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=size_height]').val() == ''){

            layer.msg('产品尺寸高度不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=pk_logn]').val() == ''){

            layer.msg('包装尺寸长度不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=pk_width]').val() == ''){

            layer.msg('包装尺寸宽度不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=pk_height]').val() == ''){

            layer.msg('包装尺寸高度不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=weight]').val() == ''){

            layer.msg('包装重量不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=price]').val() == ''){

            layer.msg('产品价格不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=cate]').val() == ''){

            layer.msg('产品款式分类不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=freight]').val() == ''){

            layer.msg('运费不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=material]').val() == ''){

            layer.msg('材质不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=is_sale]:checked').val() == ''){

            layer.msg('是否单独销售不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=is_ds_packge]:checked').val() == ''){

            layer.msg('单双包不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=is_stock]:checked').val() == ''){

            layer.msg('是否现货不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=fun_desc]').val() == ''){

            layer.msg('卖点功能不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('select[name=appearance]:selected').val() == ''){

            layer.msg('纸箱外观不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=is_install_pic]:checked').val() == ''){

            layer.msg('是否出安装图纸不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=delivery_method]').val() == ''){

            layer.msg('送货方式不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=df_method]').val() == ''){

            layer.msg('代发发货方式不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=settle_method]').val() == ''){

            layer.msg('结账方式不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=is_lou]:checked').val() == ''){

            layer.msg('是否送货上楼不能为空！', {icon: 2,time: 1000});

            return false;

        }

        if($('input[name=is_clear_store]:checked').val() == ''){

            layer.msg('是否清理库存不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=img_method]').val() == ''){

            layer.msg('成品出图方式不能为空！', {icon: 2,time: 1000});

            return false;

        }



        if($('input[name=is_yy_img]:checked').val() == ''){

            layer.msg('运营是否先出图不能为空！', {icon: 2,time: 1000});

            return false;

        }



        layer_loading('正在处理');

        $('#post_form').submit();

    }



    // 获取点击更新图片的ID并加载隐藏域

    function LoadImagesId(id){

        // 加载ID到隐藏域

        $('#ImagesId').val(id);

        // 调用图片上传JS

        GetUploadify(1,'','allimg','UpdataImages');

    }



    // 更新图片

    function UpdataImages(path){

        // 获取点击的ID

        var id = $('#ImagesId').val();

        // 加载图片到显示层

        $("#"+id+"_Id").attr('src', path);

        // 加载图片到提交的隐藏域

        $("#"+id+"_Litpic").val(path);

    }



    // 上传图集相册回调函数

    function imgupload_call_back_one(paths){

        var last_div = $('#skuImg').find(".images_upload_tpl").html();

        var inputs   = $('#skuImg').find('.span_input input');



        for (var i=0;i<paths.length ;i++){

            $('#skuImg').find(".images_upload:eq(0)").before(last_div);  // 插入一个 新图片

            // 修改他的链接地址

            $('#skuImg').find(".images_upload:eq(0)").find('span:eq(0)').attr('onclick',"Images('"+paths[i]+"', 900, 600);");

            // 修改他的图片路径

            $('#skuImg').find(".images_upload:eq(0)").find('img').attr('src',paths[i]);

            // 处理图片路径及隐藏域

            if (inputs.length > '0') {

                // 修改隐藏域，提交图片隐藏域

                $('#skuImg').find(".span_input:eq(0)").find('input:eq(0)').attr('name','img[]').attr('value',paths[i]);



                // 删除按钮

                $('#skuImg').find(".images_upload:eq(0)").find('div.operation a:eq(1)').attr('onclick',"ClearPicArr(this,'"+paths[i]+"')").html("<i class='fa fa-remove'></i>删除");

            }

        }

    }



    // 上传之后删除组图input

    function ClearPicArr(obj,path,id)

    {

        // 删除数据库记录

        $.ajax({

            type:'POST',

            url:"{:url('SkuShop/del_imgupload')}",

            data:{del_id:id,_ajax:1},

            success:function(){

                $(obj).parent().parent().parent().remove(); // 删除完服务器的, 再删除 html上的图片

                $.ajax({

                    type:'POST',

                    url:"{:url('Uploadify/delupload')}",

                    data:{action:"del", filename:path,_ajax:1},

                    success:function(){}

                });

            }

        });

    }



    // 代码调用js

    function copyToClipBoard(id) {

        var adstr = "{eyou:ad aid='" + id + "'}\r\n   <a href='{$"+"field.links}' {$"+"field.target}><img src='{$"+"field.litpic}' alt='{$"+"field.title}' /></a>\r\n   广告注释：{$"+"field.intro}\r\n{/eyou:ad";

        var contentdiv = '<div class="dialog_content" style="margin: 0px; padding: 0px;"><dl style="padding:10px 30px;line-height:30px"><dd>标签 ad 调用:</dd>';

        contentdiv += '<textarea rows="4" cols="60" style="width:400px;height:100px;">' + adstr + '}</textarea>';

        contentdiv += '<dd style="border-top: dotted 1px #E7E7E7; color: #F60;">请将对应标签代码复制并粘贴到对应模板文件中！</dd></dl></div>';

        layer.open({

            title: '代码调用',

            type: 1,

            skin: 'layui-layer-demo',

            area: ['480px', '260px'], //宽高

            content: contentdiv

        });

    }



    // 图集相册的拖动排序相关 js

    $( ".sort-list" ).sortable({

        start: function( event, ui) {



        }

        ,stop: function( event, ui ) {



        }

    });

    //因为他们要拖动，所以尽量设置他们的文字不能选择。

    $( ".sort-list" ).disableSelection();

</script>



{include file="public/footer" /}